<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:h="http://java.sun.com/jsf/html">
    
    <ui:composition template="/WEB-INF/Templates/Template.xhtml">
        <ui:define name="content">
            <div align="center">
                <h:dataTable cellspacing="5px" 
                             value="#{rb.lopene.alleLop}" 
                             var="allelop" border="1"
                             styleClass="table"
                             headerClass="tabellerOverskrift"
                             rowClasses="oddColumn, evenColumn"
                             captionClass="overskriftTabell"
                             width="1000">
                    
                    <f:facet name="caption">#{tekster.utskrift_overskrift2}</f:facet>
                    <h:column>
                        <f:facet name="header">#{tekster.utskrift_lopid}</f:facet>
                        <h:outputText value="#{allelop.lop_id}"/>
                    </h:column>
                    <h:column>
                        <f:facet name="header">#{tekster.Lop}</f:facet>
                        <h:outputText value="#{allelop.lopnavn}"/>
                    </h:column>
                    <h:column>
                        <f:facet name="header">#{tekster.Dato}</f:facet>
                        <h:outputText value="#{allelop.date}"/>
                    </h:column>
                    <h:column>
                        <f:facet name="header">#{tekster.distanse}</f:facet>
                        <h:outputFormat value="#{allelop.distanse}"/>
                    </h:column>
                    <h:column>
                        <f:facet name="header">#{tekster.beskrivelse}</f:facet>
                        <h:outputText value="#{allelop.beskrivelse}"/>
                    </h:column>
                </h:dataTable>
                <h:form>
                    <ui:debug hotkey="i"/>
                    <h:commandButton value="#{tekster.Tilbake}" action="/index?faces-redirect=true"/>
                </h:form>
            </div>
        </ui:define>
    </ui:composition>
</html>